package cn.glow.readingcloud.homepage.pojo;


import com.alibaba.fastjson.JSONObject;
import lombok.Data;

import java.util.Map;

/**
 * @Author Glow
 * @Date 2023-04-23 14:57:42
 * @Description ES请求查询体
 * @Version 1.0
 */
@Data
public class RequestQuery {

    private int from;
    private int size;
    private Map query;

    public RequestQuery(int from, int size, Map query) {
        this.from = from;
        this.size = size;
        this.query = query;
    }

    @Override
    public String toString(){
        return JSONObject.toJSONString(this);
    }

}
